@layout("/common/_curd/_container.html"){

<script type="text/javascript">
	var ctx = "${basePath}";
	var grid_selector = "#grid-table";
	var pager_selector = "#grid-pager";
	
	$(function(){
		initGrid();
		initMenuBtn("btns", "${code}");
	});
	
	function initGrid(){
		var grid_url = ctx + "/${code}/list";
		var _colnames = ["年度",
						"项目名称", 
						"申报单位", 
						"责任单位",
						"项目状态",
						"操作"];
		var _colmodel = [{name:"id", index:"id", width:100,formatter: function () {
							return '2018';
						}},
						{name:"name", index:"name", width:100},
						{name:"dept_id", index:"dept_id", width:100},
						{name:"responsible", index:"responsible", width:100},
						{name:"status", width:100,formatter: function (value,row,index) {
							return '专家已评审';
						}},
						{name:"temarks", width:100,formatter: function (value,row,index) {
							return '<a href="#" class="btn btn-btn btn-success btn-xs" onclick="Listcomview('+"'"+index.id+"'"+')">'+"查看"+'</a> ' +
									'&nbsp;<a href="#" class="btn btn-btn btn-success btn-xs" onclick="Listcomaudit('+"'"+index.id+"'"+')">'+"填写评审表"+'</a> ' +
									'&nbsp;<a href="#" class="btn btn-btn btn-success btn-xs" onclick="Listcomback('+"'"+index.id+"'"+')">'+"退回"+'</a>';
						}}];
		
		jQuery(grid_selector).jqGrid({
			url : grid_url,
		    shrinkToFit : true,
			colNames : _colnames,
			colModel : _colmodel, 
			jsonReader : {id :"id"},
			pager : pager_selector,
			postData : {sort : "id", order : "desc"}
		});
	}
	Listcomview = function (entId) {
		var index = layer.open({
			type: 2,
			title:'查看详情',
			area: ['90%', '70%'],
			maxmin:true,
			shadeClose: true, //点击遮罩关闭

			content:  '/projects/view?id='+ entId
		});

		this.layerIndex = index;
	};
	Listcomaudit = function (entId) {
		var index = layer.open({
			type: 2,
			title:'项目管理系统',
			area: ['90%', '70%'],
			maxmin:true,
			shadeClose: true, //点击遮罩关闭

			content:  '/listcom/toform?id='+ entId
		});

		this.layerIndex = index;
	};
	Listcomback = function (entId) {
		var index = layer.open({
			type: 2,
			title:'项目管理系统',
			area: ['90%', '70%'],
			maxmin:true,
			shadeClose: true, //点击遮罩关闭

			content:  '/projects/back?id='+ entId
		});

		this.layerIndex = index;
	};
</script>


	<!-- 配置 grid -->
	<div class="row">
		<div class="col-xs-12 tb-grid">
			<!-- 配置 查询 -->
			@ var _col=[
@		{name:"主键", index:"id", type:"text"},
			@		{name:"项目名称", index:"name", type:"text"},
			@		{name:"申报单位", index:"dept_id", type:"text"},
			@		{name:"联系人", index:"contact", type:"text"},
			@		{name:"联系电话", index:"phone", type:"text"},
			@		{name:"邮箱", index:"email", type:"text"},
			@		{name:"填报日期", index:"indate", type:"text"},
			@		{name:"建设规模及主要建设内容", index:"introduction", type:"text"},
			@		{name:"责任单位", index:"responsible", type:"text"},
			@		{name:"建设性质", index:"nature", type:"text"},
			@		{name:"建设开始时间", index:"start", type:"text"},
			@		{name:"建设结束时间", index:"over", type:"text"},
			@		{name:"预算（万）", index:"budget", type:"text"},
			@		{name:"预算来源", index:"Source", type:"text"},
			@		{name:"至2017年底进展情况", index:"schedule", type:"text"},
			@		{name:"完成投资（万）", index:"Completion", type:"text"},
			@		{name:"工程形象进度", index:"progress", type:"text"},
			@		{name:"2018年计划安排", index:"plan", type:"text"},
			@		{name:"计划投资（万）", index:"plan_budget", type:"text"},
			@		{name:"至年底工程形象进度", index:"plan_progress", type:"text"},
			@		{name:"附件", index:"annex", type:"text"},
			@		{name:"备注", index:"temarks", type:"text"},
			@		{name:"建设方案", index:"plan_file", type:"text"},
			@		{name:"审核状态", index:"status", type:"text"},
			@		{name:"专家列表", index:"expert_ids", type:"text"},
			@		{name:"专家反馈期限", index:"feedback", type:"text"},
			@		{name:"", index:"version", type:"text"},
			@		{name:"经信委初审意见", index:"audit_opinion", type:"text"},
			@		{name:"专家审核意见", index:"expert_opinion", type:"text"}							
			@];
			@ include("/common/_function/_search.html",{"col":_col}){}
			<!-- 按钮 -->
			<div class="welljq well-sm" id="btns"></div>
			<!-- grid -->
			<table id="grid-table"></table>
			<!-- 分页-->
			<div id="grid-pager"></div>
		</div>
	</div>
	
	<!-- 引入所需的js -->
	@include("/common/_listscript.html"){}
	
@}	